package com.feidee.fdhadoop;
import com.feidee.fdhadoop.hbase.HBaseManager;
import com.feidee.fdcommon.configuration.CustomConfiguration;
import com.feidee.fdhadoop.kerberos.KerberosAuthentication;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author YongChen
 * @date 2018/12/25 10:18
 * @description 算法规则函数
 * @reviewer dongguosheng
 */
public class HbaseWriteKafka {

    public static void main(String[] args) {
        HashMap<String,String> hashMap=new HashMap<>();
        List<Map<String, String>> data = new ArrayList<>();
        System.out.println(data.size());
        hashMap.put("sex","7");
        hashMap.put("rowkey","yyyyyyyyyyyyyyyyy");
        data.add(hashMap);
        try {


            CustomConfiguration.setString("env","test");


            HBaseManager.addRecordsBatch("hbasebackup","info",data);
//            HBaseManager.addCells("hbasebackup","xxxxxxxxxxxxxxx","info",hashMap);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
